package com.hfjyz.base.bean;

import java.io.Serializable;
import java.util.List;

public abstract class BaseBean implements Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -6040076688429020386L;
    protected String regDate = null;
    protected String signValue = null;

    public abstract Integer getId();

    public abstract List<String> toJsonArray(int index);

    public abstract String validate();

    protected String getErrMsgForUI(List<String> errList) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < errList.size(); i++) {
            if (i != 0) {
                sb.append(";");
            }
            sb.append(errList.get(i));
        }

        return sb.toString();
    }

    public String getRegDate() {
        return regDate;
    }

    public void setRegDate(String regDate) {
        this.regDate = regDate;
    }

    public String getSignValue() {
        return signValue;
    }

    public void setSignValue(String signValue) {
        this.signValue = signValue;
    }
}
